package com.tianluo.tianluobookstore.service;

import com.tianluo.tianluobookstore.OrderPO;
import com.tianluo.tianluobookstore.request.CreateOrderRequest;
import lombok.Data;

import java.util.Date;

public interface OrderService {

    OrderPO queryOrderByBizSeq(String bizSeq);

    String createOrder(CreateOrderRequest request);

    OrderPO queryOrderByOrderId(String orderId);

    int cancelOrder(String orderId);

    boolean processTimeoutOrders(Date timeoutTime, Integer currentPage, Integer pageSize);

    boolean isOrderPaid(String orderId);

    int updateOrderStatus(String orderId, String status, String preStatus,String paymentStatus,String prePaymentStatus);

}
